import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入element-plus库
import element from "element-plus"
// 引入element的全局css样式
import "element-plus/dist/index.css"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 引入全局组件
import common from './common'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

for (const [key, component] of Object.entries(common)) {
  app.component(key, component)
}





app.use(store).use(router).use(element).mount('#app')
